package com.curso;

public class Elemplo1 {

		public static void main(String[] args) {
			int i = 9,k;
			float j = 47.9F;
	System.out.println("i: " + i + " j: " + j);
	
	k = (int)j; // empleo de un cast
	System.out.println("j:" + j + " : " +k);
	j = k; // no necesita cast
	System.out.println("j: " + j + " : " +k);
	float m = 2.3F;
	//float m = 2.3; daria error al compilar.
	System.out.println("m: "+ m);
	
		
		
		int x = 0;
		boolean cond = true;
		float f = 5.6f;
		
		x = (int)f;
		f = x;
		
		char c = 'f';
		int x2 = 4;
		
		x2 = c;
		
		
		
		}

}
